package com.homedo.odin.solution.model.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 操作记录
 * </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@TableName("operate_trace")
@Getter
@Setter
public class OperateTrace extends Model<OperateTrace> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 操作类型
     */
	@TableField("operat_type")
	private Integer operatType;
    /**
     * 操作者
     */
	private String operator;
    /**
     * 业务类型 1:专家信息 2:方案信息 3:项目信息
     */
	@TableField("business_type")
	private Integer businessType;
    /**
     * 方案编号
     */
	@TableField("solution_id")
	private Long solutionId;
    /**
     * 专家id
     */
	@TableField("expert_id")
	private Integer expertId;
    /**
     * 项目编号
     */
	@TableField("project_id")
	private Long projectId;
	@TableField("from_state")
	private Integer fromState;
	@TableField("to_state")
	private Integer toState;
	private String detail;
	@TableField("create_time")
	private Date createTime;



	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
